home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / devtools / automake-1.0.tar.gz / automake-1.0.tar / automake-1.0 / tests / extra.test < prev    next >
Text File  |  1996-05-14  |  478b  |  22 lines

  1. #! /bin/sh
  2.  
  3. # Test to make sure EXTRA_ targets are generated.  This test used to
  4. # make sure the targets were *not* generated.  That is wrong; the
  5. # targets should always be generated.  However, they should not be
  6. # built by default.
  7.  
  8. . $srcdir/defs || exit 1
  9.  
  10. cat > Makefile.am << 'END'
  11. bin_PROGRAMS = @foo@
  12. EXTRA_PROGRAMS = zardoz
  13. END
  14.  
  15. $AUTOMAKE || exit 1
  16.  
  17. grep "^zardoz" Makefile.in || exit 1
  18.  
  19. # Can't have EXTRA clean rules.
  20. grep 'clean.*EXTRA' Makefile.in && exit 1
  21. exit 0
  22.